//
//  方便构造YRNKDispatchable实例的类
//  YRNKDispatchTask.swift
//  YoruNeko
//
//  Created by liphone on 2021/7/6.
//

import Foundation

class YRNKDispatchTask:YRNKDispatchable{
    
    var operation:(()->Void)?
    
    /*
     方便构造器
     */
    init(operation:(()->Void)?) {
        self.operation = operation
    }
    
    
    func dispatch() {
        operation?();
    }
    
    
    
    
}
